package cn.ddiancan.schedule.base.domain;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

import cn.ddiancan.xddcloud.common.entity.BaseVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class TaskDTO extends BaseVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    private String scheduleCode;

    private String scheduleName;

    private String cron;

    private String cronInput;

    private String cronType;

    private String cronValue;

    private String cronTimeValue = "00:00";

    private String executeUrl;

    private String executeBean;

    private String scheduleRemark;

    private Integer executeType = ExecuteTypeEnum.Bean.getCode();

    private String state = "0";

    private String enabled = "1";

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date validStartDate;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date validEndDate;

    private String performer;

    private String noticeMember;
}
